package com.xukang.demo.entity;

public class ApiResponse<T> {
    private String code;//0成功1失败
    private String msg;

    private T data;

    public final String getCode() {
        return code; }

    public final void setCode(final String code) {
        this.code = code;
    }

    public final String getMsg() {
        return msg;
    }

    public final void setMsg(final String msg) {
        this.msg = msg;
    }

    public final T getData() {
        return data;
    }

    public final void setData(final T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ApiResponse{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
